﻿using System.Configuration;

namespace Framework.CustomConfigurationSectionsDefinition
{
    public class UnityBindingElement : ConfigurationElement
    {
        [ConfigurationProperty("interface", DefaultValue = "", IsKey = false, IsRequired = false)]
        public string Interface
        {
            get { return ((string)(base["interface"])); }
            set { base["interface"] = value; }
        }

        [ConfigurationProperty("class", DefaultValue = "", IsKey = true, IsRequired = false)]
        public string Class
        {
            get { return ((string)(base["class"])); }
            set { base["class"] = value; }
        }

        [ConfigurationProperty("assemblyInstance", DefaultValue = "", IsKey = false, IsRequired = false)]
        public string AssemblyInstance
        {
            get { return ((string)(base["assemblyInstance"])); }
            set { base["assemblyInstance"] = value; }
        }

        [ConfigurationProperty("assemblyInterface", DefaultValue = "", IsKey = false, IsRequired = false)]
        public string AssemblyInterface
        {
            get { return ((string)(base["assemblyInterface"])); }
            set { base["assemblyInterface"] = value; }
        }

        [ConfigurationProperty("lifetime", DefaultValue = "", IsKey = false, IsRequired = false)]
        public string Lifetime
        {
            get { return ((string)(base["lifetime"])); }
            set { base["lifetime"] = value; }
        }
    }
}
